﻿using System;
using Microsoft.Extensions.DependencyInjection;

namespace KY.Mongo
{
    public static class StaticLoad
    {
        public static IServiceCollection UseKYMongo(this IServiceCollection services)
        {
            //services.AddScoped()
            services.AddScoped(typeof(IMongoRepository), typeof(MongoRepository));
            return services;
        }
    }
}
